﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;

namespace Sample.Novel.Domain.Author.Entites
{
  public  class Author:Entity<Guid> //AggregateRoot审计属性 暂时不需要
    {
        public string  Name { get; set; }

        public string Description { get; set; }

        protected Author() 
        { 
        //提供给ORM创建实体
        }
        public Author(Guid id,string name ,string description=null)
        {
            //对外公开的ABp中 实体id应该通过参数来获取
            Id = id;
            Description = description;
            Name = name;
        }

    }
}
